import request from '@/utils/request'

export function uploadImg(data) {
  return request({
    url: '/common/upload',
    method: 'post',
    data
  })
}

export function delImg(fileName) {
  return request({
    url: `/common/delete?fileName=${fileName}`,
    method: 'delete'
  })
}

export function listWechat(params) {
  return request({
    url: '/user/wx/list',
    method: 'get',
    params
  })
}